{% extends "base.html"%}
{% block content%}
      <tr>
	  <td>&nbsp;</td>
	  <td colspan="4"></td>
	  <td>

<table width="90%" border=1px cellpadding="0" cellspacing="0" >
    <tr>
	<td width="100%" valign="top" >
	<div align="center">Кафе "{{cafe.cafe_name}}"</div>
	<br>
	Улица: {{cafe.cafe_stret}}
	Дом: {{cafe.cafe_house}} 
	Средний чек: {{cafe.cafe__price}}<br>
	Рейтинг: {{cafe.cafe_reiting}}
	Фото: 
	</form>
	</td>
	<td width="350px" align="left" >
	<script type="text/javascript">
        window.onload = function () {
                var map = new YMaps.Map(document.getElementById("YMapsID"));
                map.setCenter(new YMaps.GeoPoint({{cafe.cafe_geo}}), 16);
                var zoom = new YMaps.Zoom({customTips: [{ index: 6, value: "Весь край" },{ index: 12, value: "Город" },{ index: 16, value: "Близко" }]});
                map.addControl(zoom);
                var search = new YMaps.SearchControl({ width:16 });
                        var placemark = new YMaps.Placemark(new YMaps.GeoPoint({{cafe.cafe_geo}}), {style: "default#cafeIcon"});
	                placemark.setBalloonContent("<b><a href='/food/shcafe/{{cafe.id}}' class='cname'>{{cafe.cafe_name}}</a></b><table width=100%> \
		<tr valign='top'><td><br><span class='st_pr'>ул.{{cafe.cafe_stret}} д.{{cafe.cafe_house}}\
		<br>Чек:{{cafe.cafe_price}}</span></div></td>\
        <td><div><img src='/files/{{cafe.cafe_logo}}' border=0 align='right'></td>\
        </tr></table>");
                        map.addOverlay(placemark);
                                 }
	</script>
	<div id="YMapsID" style="width:350px;height:350px"></div>
	</td>
    </tr>
</table>
<br>
Коментарии:<br>
	{% for coment in coments %}
	<table><tr><td>
	{{coment.title}}<br>{{coment.text}}
	</td></tr></table>
	{% endfor%}
	<table><tr><td>
        <form name="addcoment" action="/food/addcom/" method="post">
        Тема <input type="text" name="title" size="20">
	<br>
        Коментарий <input type="text" name="text" size="50">
	<br>
        <input type="hidden" name="cafe_id" value="{{cafe.id}}" size="7" >
	<br>
        <input name="submit" type="submit" value="Отправить!" >
        </form>
	</td></tr></table>

	</td>
    <td valign="top">{% include "tags.html" %}</td>
      </tr>
      <tr>
	  <td height=13px colspan="8"></td>
      </tr>
      <tr>
	<td ></td>
        <td colspan="5">&nbsp;
	</td>
	<td>&nbsp;</td>
     </tr>
{% endblock %}

